home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ViewTester / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.3 KB  |  99 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. //-------------------------------------------------------------------------------------
  14. // Uncomment the following four lines, and define them appropriately!!
  15. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  16. // to be 1.  Otherwise define it to be 0.
  17. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  18. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  19. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  20. // define it to be zero.  Note that if your part is scriptable is must support
  21. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  22.  
  23. #define FW_SUPPORTS_EMBEDDING     0
  24. #define FW_SUPPORTS_EXTENSIONS     0
  25. #define FW_SUPPORTS_SCRIPTING     0
  26.  
  27. //-------------------------------------------------------------------------------------
  28. // Use the following flags to determine which view resources are supported.
  29. // By default this sample supports both MacApp and PowerPlant views but doesn't use
  30. // any ODF views
  31.  
  32. #define FW_ODFRC_VIEWS            0    
  33. #define FW_MACAPP_VIEWS            1    
  34. #define FW_PPOB_VIEWS            1
  35.  
  36. //-------------------------------------------------------------------------------------
  37. // Presentations
  38. #define kMainPresentation                "ODF:Presentation:ViewTester"
  39. #define kDialogPresentation                "ODF:Presentation:ViewTester:Dialog"
  40. #define kTestPresentation                "ODF:Presentation:ViewTester:Test"
  41.  
  42. //-------------------------------------------------------------------------------------
  43. // Menus
  44. #define kMenuBar                 1024
  45.  
  46. #define kFirstMacAppCommandID    FW_kFirstUserCommandID + 100
  47. #define kFirstPPobCommandID        FW_kFirstUserCommandID + 200
  48.  
  49. #if FW_MACAPP_VIEWS
  50. #define  cReloadMAViews            kFirstMacAppCommandID
  51. #define  cLoadNewMAViews        kFirstMacAppCommandID + 1
  52. #define  cLoadNewMAResFile        kFirstMacAppCommandID + 2
  53. #endif
  54. #if FW_PPOB_VIEWS
  55. #define  cReloadPPobViews        kFirstPPobCommandID
  56. #define  cLoadNewPPobViews        kFirstPPobCommandID + 1
  57. #define  cLoadNewPPobResFile    kFirstPPobCommandID + 2
  58. #endif
  59.  
  60. //-------------------------------------------------------------------------------------
  61. //     Views
  62.  
  63. #define kMainViewID                -1
  64.  
  65. #define kDialogID                2000
  66. #define kOKButtonID                1
  67. #define kCancelButtonID            2
  68. #define kMacAppEditID            3
  69. #define kPPobEditID                4
  70. #define kMacAppPopupID            5
  71. #define kPPobPopupID            6
  72.  
  73. #define kPictureWidth        572
  74. #define kPictureHeight        498
  75.  
  76. //-------------------------------------------------------------------------------------
  77. // Document Window
  78. #define kDocumentWindowID        1024
  79.  
  80. //-------------------------------------------------------------------------------------
  81. // About
  82. #define kAbout                     1024
  83.  
  84. //-------------------------------------------------------------------------------------
  85. // Icons ID
  86.  
  87. #define kDocumentIconID            1000
  88. #define kStationeryIconID        1001
  89. #define kEditorIconID            1002
  90. #define kViewAsIconID            kDocumentIconID
  91. #define kAboutIconID            kDocumentIconID
  92.  
  93. //-------------------------------------------------------------------------------------
  94. // PartInfo
  95. #define kPartInfoID                1000
  96.  
  97. #endif
  98.  
  99.